package com.jgsu.farm.entity;

import lombok.Data;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Map;

@Data
@Table(name = "weedstress")
public class Weedstress implements Serializable {

    private Integer weedid;

    private Integer stresstype;

    private Integer cropid;

    private Integer category;

    private String harm;

    private String symptom;

    private String control;

    private Integer symptomimage;

    private Map<String,String> map_symptomimage;

    public Weedstress(Integer stresstype, Integer cropid, Integer category, String harm, String symptom, String control, Integer symptomimage) {
        this.stresstype = stresstype;
        this.cropid = cropid;
        this.category = category;
        this.harm = harm;
        this.symptom = symptom;
        this.control = control;
        this.symptomimage = symptomimage;
    }

    public Weedstress(Integer weedid, Integer stresstype, Integer cropid, Integer category, String harm, String symptom, String control, Integer symptomimage, Map<String, String> map_symptomimage) {
        this.weedid = weedid;
        this.stresstype = stresstype;
        this.cropid = cropid;
        this.category = category;
        this.harm = harm;
        this.symptom = symptom;
        this.control = control;
        this.symptomimage = symptomimage;
        this.map_symptomimage = map_symptomimage;
    }
}